package com.lyy.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 会员登录记录 实体类。
 *
 * @author LianYaoyun
 * @since 2024-06-22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "ums_member_login_log", schema = "yunch_shop")
public class MemberLoginLog implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * ip地址
     */
    private String ip;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 登录类型：0->PC；1->android;2->ios;3->小程序
     */
    private Integer loginType;

    /**
     * 省份
     */
    private String province;

}
